package com.example.roomtest

import androidx.room.*

/**
 *@author : Administrator
 *@descreption :
 */
@Dao
interface AppleDao {
    @Insert
    fun insert(vararg APPLES: Apple)

    @Update
    fun upData(vararg APPLES: Apple)

    @Delete
    fun delete(vararg APPLE: Apple)


    @Query("DELETE  FROM  table_apple")
    fun deleteAll()


    @Query("Select * From table_apple ")
    fun selectAll():List<Apple>
}